package com.jch.mp.manner1.domain.message;

import com.jch.mp.manner1.domain.protocol.Command;
import com.jch.mp.manner1.domain.protocol.Packet;

public class GroupMessage extends Packet {

    private int groupId;
    private String groupName;
    private String content;

    public GroupMessage() {
    }

    public GroupMessage(int groupId, String groupName, String content) {
        this.groupId = groupId;
        this.groupName = groupName;
        this.content = content;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public byte getCommand() {
        return Command.GROUP_MESSAGE;
    }
}
